
#ifndef IMAGELAYER_H
#define IMAGELAYER_H

#include <BImage>
#include <BWidget>

using namespace BWE;

class ImageLayer : public BWidget
{
	BOBJECT(ImageLayer);
public:
	ImageLayer(BWidget* parent = 0);
	~ImageLayer();

	void setImage(BImage* image);
	BImage* image() const;

protected:
	void slotImageDirty();

protected:
	virtual void freshEvent(const BEvent& event);
	virtual void paintEvent(const BEvent& event);

private:
	BImageHolder	_image;
};

#endif
